var bcrypt = require('bcryptjs');
// var salt = bcrypt.genSaltSync(10); //加盐
// var hash = bcrypt.hashSync("damulovezdy", salt);
// console.log(hash)  //$2a$10$TpsHzNG3HZ6g/.haVg6mt.3oOsapRQLCOYRk28CpScDrvnBo5SP0G

var hash = "$2a$10$TpsHzNG3HZ6g/.haVg6mt.3oOsapRQLCOYRk28CpScDrvnBo5SP0G";
var flag = bcrypt.compareSync("damulovezdy", hash);
console.log(flag)